package com.th.supcom.pds.auditprescription.client.widget;

import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.th.supcom.pds.common.client.commom.FieldPanel;

public class AuditPrescripStatusPanel extends FieldSet
{
    /** 处方信息组件面板 */
    private AuditPrescripFields m_auditPrescripFields;

    public AuditPrescripStatusPanel ()
    {

        init ();
    }

    public AuditPrescripStatusPanel (final AuditPrescripFields fields)
    {
        m_auditPrescripFields = fields;
        init ();
    }

    public AuditPrescripFields getAuditPrescripFields ()
    {
        return m_auditPrescripFields;
    }

    private void init ()
    {
        setHeading ("处方状态");
        final FieldPanel pp = new FieldPanel ();
        pp.setPaddingRight ("2px");
        pp.setLabelWidth (51);
        pp.setLabelAlian ("L");

        pp.addCol (m_auditPrescripFields.getPrescType (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getControlType (), 1, null, null);
        pp.addCol (new LayoutContainer (), 1, null, null);
        pp.newRow ();

        pp.addCol (m_auditPrescripFields.getRepetition (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getOrderedBy (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getDiagEmpName (), 1, null, null);
        pp.newRow ();

        
        pp.addCol (m_auditPrescripFields.getEnterTime (), 1, null, null);
        pp.newRow ();

        add (pp);
    }

    public void setAuditPrescripFields (final AuditPrescripFields auditPrescripFields)
    {
        m_auditPrescripFields = auditPrescripFields;
    }

}
